import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

import org.junit.Test;


public class test1{
	
	int i;
	
	public synchronized void add(){
		i++;
		System.out.println(i);
	}
	
	public synchronized void sub(){
		
		i--;
		System.out.println(i);
	}
	
	@Test
	public void test(){
			
		while(Boolean.TRUE){
			int i = 0;
			System.out.println(i);
			i++;
		}
	}
}